home *** CD-ROM | disk | FTP | other *** search
/ Educational Software Cooperative 4 / Educational Software Cooperative 4.iso / midilang / continue.mpl < prev    next >
Text File  |  1996-02-06  |  1KB  |  81 lines

  1. 18650
  2. #
  3. #
  4. #
  5. #    Continue.mpl
  6. #
  7. #    An funny copier of your play
  8. #           Author           ID               Date
  9. #       ------------    -----------          ---------
  10. #       Serge Sibony    100417,2633          09/06/95
  11. #      
  12. #
  13. # This file is a mpl effect definition used by MidiLang
  14. #    MidiLang can be found at the MidiForum, in the
  15. #         Windows sound media library.
  16. #
  17. # For each notes played, this effect will try to continue
  18. # the melody. For example, if you play C and C#, this effect
  19. # will play D, and so on, with the same tempo.
  20. #
  21. # This effect works only on the upper channel
  22. #
  23.  
  24. Label Main
  25. Chan!= 4
  26.     goto end    bad channel, must be 4
  27. Vel== 0            
  28.     goto end    released note
  29.  
  30. V+= 1 1
  31.  
  32. V=V 5 2
  33. V=V 6 3        copy old data
  34. V=V 7 4    
  35.  
  36. V=note 2    mem the note
  37. V=time 3    mem the time
  38. V=Vel 4        mem the velocity
  39.  
  40. V< 1 2
  41.     goto end    at least two notes necessary
  42.  
  43. V=V 8 2
  44. V=V 9 3
  45. V=V 10 4
  46.  
  47.  
  48. V+=V 8 2    next note
  49. V-=V 8 5
  50.  
  51. Note=V 8
  52.  
  53. V+=V 9 3
  54. V-=V 9 6
  55.  
  56. Time=V 9
  57.  
  58. V=V 9 3
  59. V-=V 9 6
  60.  
  61. V>= 9 240    too long note
  62.   V= 9 240
  63.  
  64. Outmidi
  65.  
  66. Time+=V 9
  67. Vel= 0
  68. Outmidi        do not forget to release the note !
  69.  
  70.  
  71. Label End    if bad channel or first note
  72. End     
  73.  
  74.  
  75. Descript  This effect copies and tries to continue your play.
  76. Descript  all your upper note will be extrapoled
  77. Descript  (The effect will run after two notes played)
  78.